import vue from '@vitejs/plugin-vue'

import createAutoImport from './auto-import'

import { viteMockServe } from 'vite-plugin-mock'
export default function createVitePlugins(viteEnv, isBuild = false) {
    const vitePlugins = [vue()]
    vitePlugins.push(createAutoImport())
    vitePlugins.push(viteMockServe({
        supportTs: false,
        logger: false,
        mockPath: "./mock/"
      }))
    return vitePlugins
}
